﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{

        /// <summary>
        /// 客诉单
        /// </summary>
        public class CustomerComplaints
        {
            /// <summary>
            /// 自增列
            /// </summary>
            [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
            public int ID { get; set; }
            /// <summary>
            /// 单号
            /// </summary>
            public string DocNum { get; set; } = string.Empty;
            /// <summary>
            /// 单据日期
            /// </summary>
            public DateTime DocDate { get; set; } = DateTime.Now;
            /// <summary>
            /// 加工厂编号
            /// </summary>
            public string SupplierNum { get; set; } = string.Empty;
            /// <summary>
            /// 加工厂名称
            /// </summary>
            public string SupplierName { get; set; } = string.Empty;
            /// <summary>
            /// 客诉日期
            /// </summary>
            public DateTime ComplaintsDate { get; set; } = DateTime.Now;
            /// <summary>
            /// 客诉类型
            /// </summary>
            public string ComplaintsStyle { get; set; } = string.Empty;
            /// <summary>
            /// 业务员
            /// </summary>
            public string SaleMan { get; set; } = string.Empty;
            /// <summary>
            /// 接收人
            /// </summary>
            public string ReceiveMan { get; set; } = string.Empty;
            /// <summary>
            /// 客诉金额
            /// </summary>
            public decimal ComplaintsMoney { get; set; }
            /// <summary>
            /// 原因分析
            /// </summary>
            public string CauseAnalysis { get; set; } = string.Empty;
            /// <summary>
            /// 处理方案
            /// </summary>
            public string HandlingScenarios { get; set; } = string.Empty;
            /// <summary>
            /// 长期改善方案
            /// </summary>
            public string LongtermImprovementoptions { get; set; } = string.Empty;
            /// <summary>
            /// 异常描述
            /// </summary>
            public string DescriptionException { get; set; } = string.Empty;
            /// <summary>
            /// 是否已经审核
            /// </summary>
            public Boolean IsAudit { get; set; } = false;
            /// <summary>
            /// 单据类型
            /// </summary>
            public string DocStyle { get; set; } = string.Empty;
        }
    }

